package org.yenn.pattern.aliyun.behavioral.mediator;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * 步骤 2
 * 创建 user 类。
 */
@AllArgsConstructor
@Data
public class User {
    private String name;

    public void sendMessage(String message){
        ChatRoom.showMessage(this,message);
    }
}
